package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.orm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 摄像头抓图策略表
 * </p>
 *
 * @author kinggu
 * @since 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hw_camera_snapshot_strategy")
public class HwCameraSnapshotStrategy extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 策略名称
     */
    @TableField("strategy_name")
    private String strategyName;

    /**
     * 策略描述
     */
    @TableField("description")
    private String description;

    /**
     * 抓图间隔（秒）
     */
    @TableField("interval_seconds")
    private Integer intervalSeconds;

    /**
     * 是否为全局默认策略: 0-否, 1-是
     */
    @TableField("is_global_default")
    private Boolean globalDefault;

    /**
     * 策略状态: 0-禁用, 1-启用
     */
    @TableField("status")
    private Boolean status;

    /**
     * 逻辑删除: 0-未删除, 1-已删除
     */
    @TableField("is_deleted")
    private Boolean deleted;

    // ==================== 字段常量定义 ====================
    public static final String StrategyName = "strategy_name";
    public static final String Description = "description";
    public static final String IntervalSeconds = "interval_seconds";
    public static final String GlobalDefault = "is_global_default";
    public static final String Status = "status";
    public static final String Deleted = "is_deleted";

} 